import type { RouteRecordRaw } from "vue-router";

//登录需要携带的参数ts类型
export interface LoginData {
    username: string,
    password: string
}
//登录接口返回的数据ts类型
export interface LoginResponseData{
     token:string,
     avatar: string;
     name: string;
     menuRoutes: RouteRecordRaw[] // 用于生成导航菜单的路由列表
     buttons:string[]
}

//获取用户信息的ts类型
export interface UserInfo{
    name:string,
    avatar:string
    roles:string[],
    buttons:string[],
    routes:string[]
}